<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table width="1000" align="center" border="1">
    <tr>
        <td>商品ID</td>
        <td>卖家ID</td>
        <td>商品名称</td>
        <td>商品价格</td>
        <td>商品销量</td>
        <td>商品简介</td>
        <td>商品状态</td>
    </tr>
    <tr th:each="goods:${list}">
        <td th:text="${goods.goodsId}"></td>
        <td th:text="${goods.sellerId}"></td>
        <td th:text="${goods.goodsName}"></td>
        <td th:text="${goods.goodsPrice}"></td>
        <td th:text="${goods.goodsSellNumber}"></td>
        <td th:text="${goods.goodsIntroduce}"></td>
        <!--        <td th:text="${goods.goodsState}"></td>-->
        <td th:switch="${goods.getGoodsState()}">
            <span th:case="0">已下架</span>
            <span th:case="1">在售</span>
        </td>
        <td th:switch="${goods.getGoodsState()}">
            <span th:case="0"></span>
            <span th:case="1"><a th:href="@{/goods/freezeGoods(id=${goods.getGoodsId()})}">下架</a></span>
        </td>
    </tr>
</table>
</body>
</html>